package com.work.service.bd.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.work.dto.bd.BdOperationProcessSearchDTO;
import com.work.entity.bd.BdOperationProcess;
import com.work.mapper.bd.BdOperationProcessMapper;
import com.work.service.bd.IBdOperationProcessService;
import com.work.vo.bd.BdOperationProcessVO;
import lombok.AllArgsConstructor;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springblade.system.cache.DictBizCache;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 基础数据-作业过程接口实现
 *
 * @author ：dujianyu
 * @since ：Created in 2024/2/7 9:48
 */
@Service
@AllArgsConstructor
@DS("master_handle_tally")
public class BdOperationProcessServiceImpl extends BaseServiceImpl<BdOperationProcessMapper, BdOperationProcess> implements IBdOperationProcessService {
    @Override
    public IPage<BdOperationProcessVO> selectBdOperationProcessPage(IPage<BdOperationProcessVO> page, BdOperationProcessSearchDTO dto) {
        List<BdOperationProcessVO> data = baseMapper.selectBdOperationProcessList(dto, page);
        return page.setRecords(data);
    }

    @Override
    public List<BdOperationProcessVO> selectBdOperationProcessList(BdOperationProcessSearchDTO dto) {
        return baseMapper.selectBdOperationProcessList(dto, null);
    }
}
